<div>
    <h2 style="font-size:16px;padding:10px 0px">Check Out</h2>
    <div>
        <div>
            <input type="radio" onclick="" checked="checked" value="new" name="smode" class="uniform togglelogin" rel="<?=BASE_URL?>/index/user/register">
             I am a new customer and I would like to sign up and create an account. 
        </div>
        <div>
            <input type="radio" onclick="" id="returning" value="returning" name="smode"  class="uniform togglelogin" rel="<?=BASE_URL?>/index/shop/order">
            I am a returning customer and would like to use my existing account. 
        </div>
    </div>
<form action="<?=BASE_URL?>/index/user/register" method="post" id="form">
    <div style="display: inline;" id="logininfo">
    <table cellspacing="2" cellpadding="2" border="0">
    <tbody><tr valign="top">
    <td></td><td><font size="2" face="Arial, Helvetica, sans-serif" color="black"><b>E-mail:</b></font></td>
    <td></td><td><input type="text" value="" name="user" class="uniform"></td>
    </tr>
    <tr valign="top">
    <td></td><td><font size="2" face="Arial, Helvetica, sans-serif" color="black"><b>Password:</b></font></td>
    <td></td><td><input type="password" name="password" class="uniform"> <!--a href="<?=BASE_URL?>/index/index/login">Forgot your Password?</a--></td>
    </tr>
    </tbody></table>
    </div>
    
            <input type="hidden" name="lastparams" value='<?=$this->paramsEncode?>'>
            <input type="hidden" name="loginform" value="1">
<hr size="1" noshade="">
                        <input type="submit" value="Continue Checkout">
                        <input type="reset" value="Reset">
</form>

</div>

<script>
    function toggleLogin() {
     document.getElementById('logininfo').style.display = document.getElementById('returning').checked ? "inline" : "none";
    }
    
    document.body.onload = toggleLogin;
    toggleLogin();

    $('.togglelogin').click(function () {
        $('#form').attr('action', $(this).attr('rel'));
        toggleLogin();
    });
    
</script>